<template>
  <div class="top">
    <span class="menu"><i class="iconfont icon-liebiao"></i></span>

    <span
      ><input @click="change" class="search" type="text" placeholder="搜索"
    /></span>
    <span><i class="iconfont icon-maikefeng-tianchong"></i></span>
  </div>
</template>

<script>
import "@/assets/iconfont/iconfont.css";
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {
    change() {
      this.$router.push("/search");
    },
  },
};
</script>

<style lang="scss" scoped>
.top {
  // border-bottom: 1px solid black;
  height: 50px;
  display: flex;
  width: 345px;
  padding: 0 15px;
  justify-content: space-between;
  // background-color: red;
  align-items: center;
  i {
    width: 30px;
    font-size: 20px;
    font-weight: bolder;
  }
  .search {
    background-color: #f6f6f6;
    padding: 3px 15px;
    height: 24px;
    width: 235px;
    border-radius: 15px;
    color: #ddd;
    outline: none;
    border: none;
  }
}
</style>
